<?php foreach ($rows as $id => $row): ?>
  <div class="<?php print $classes[$id]; ?> clearfix">
    <?php print $row; ?>
  </div>
<?php endforeach; 
global $user;
$href = 'blockuserlogin';
if ($user->uid) {$href = 'claimowner';}
?>
<div class="claimowner"><a href="#<?php print $href;?>" class="leanModal">Claim Owner</a></div>